<?php

namespace App\Http\Controllers;

use App\Utils\Store;
use Illuminate\Http\Request;

class ApiController extends Controller
{
    //  Query
    public function GetCurPositions()
    {
        return Store::GetCurPositions();
    }

    public function GetExpiredPositions()
    {
        return Store::GetExpiredPositions();
    }

    public function GetTemplates()
    {
        return Store::GetTemplates();
    }

    public function GetPositionsById($id)
    {
        return Store::GetPositionsById($id);
    }

    //  Update
    public function UpdatePosition(Request $request)
    {
        return Store::UpdatePosition($request);
    }
    
    //  Add
    public function CreatePosition(Request $request)
    {
        return Store::CreatePosition($request);
    }
    
    // Delete
    public function DeletePosition(Request $request)
    {
        return Store::DeletePosition($request);
    }
    
}
